package dev.ece.util.tools.transformations;

import dev.ece.util.lib.Matrix4f;
import dev.ece.util.lib.Vector4f;

/**
 * @author 潜行的青衣
 * @see
 */
public class Rotation implements Transformation {

	private Vector4f rotate;
	
	public Rotation() {
		this(new Vector4f());
	}
	
	public Rotation(Vector4f rotate) {
		this.rotate = rotate;
	}
	
	/* (non-Javadoc)
	 * @see dev.ece.util.tools.transformations.Transformation#transform()
	 */
	@Override
	public void transform(Matrix4f matrix) {
		if(rotate.getAngle() != 0) {
			matrix.rotate(rotate);
		}
	}

	public Vector4f getRotate() {
		return rotate;
	}

}
